/**
 * 
 */
package com.fox.webapp.domain;

import java.util.Date;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author yockii
 *
 */
@Document
public class CommissionRecord {

	public static final int SAVE_SUCCESS = 1;
	public static final int ALREADY_SAVED = -1;
	public static final int NO_SUCH_ACCOUNT = -2;
	
	@Id
	private ObjectId id;
	@Indexed
	private String brokerName;
	@Indexed
	private String accountNo;
	private Double commission;
	private Date time;
	private Boolean isBacked;
	/**
	 * @return the brokerName
	 */
	public String getBrokerName() {
		return brokerName;
	}
	/**
	 * @param brokerName the brokerName to set
	 */
	public void setBrokerName(String brokerName) {
		this.brokerName = brokerName;
	}
	/**
	 * @return the accountNo
	 */
	public String getAccountNo() {
		return accountNo;
	}
	/**
	 * @param accountNo the accountNo to set
	 */
	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	/**
	 * @return the commission
	 */
	public Double getCommission() {
		return commission;
	}
	/**
	 * @param commission the commission to set
	 */
	public void setCommission(Double commission) {
		this.commission = commission;
	}
	/**
	 * @return the time
	 */
	public Date getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(Date time) {
		this.time = time;
	}
	public Boolean getIsBacked() {
		return isBacked;
	}
	public void setIsBacked(Boolean isBacked) {
		this.isBacked = isBacked;
	}
	
}
